package com.company;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.stream.Collectors;

/**
 * @author Administrator
 */
public class HJ9提取不重复的整数 {

    public static void main(String[] args) {

        List<String> strings = new ArrayList<>();
        List<Integer> integerList = new ArrayList<>();

        Scanner scanner = new Scanner(System.in);
        int input = scanner.nextInt();
        String string = String.valueOf(input);

        for (int i = 0; i < string.length(); i++) {
            strings.add(string.substring(i, i + 1));
        }

        for (int i =  strings.size(); i > 0 ; i--) {
            integerList.add(Integer.valueOf(strings.get(i -1)));
        }

        List<Integer> stringList = integerList.stream().distinct().collect(Collectors.toList());
        System.out.println(stringList.stream().map(Object::toString).collect(Collectors.joining("")));
    }
}
